<ion-header>
    <!--去掉这个返回菜单-->
    <ion-navbar hideBackButton="true" hide-nav-bar="true">
        <ion-title>
        侧滑菜单
        </ion-title>
    </ion-navbar>
</ion-header>
<ion-content>
    <h1>侧滑菜单</h1>
    <ion-menu [content]="mycontent">
        <ion-content>
          <!--菜单-->
          <ion-list>
            <ion-item  *ngFor="let item of menus" (click)="clickItem(item)" >
               {{item}}
            </ion-item>
          </ion-list>
        </ion-content>
      </ion-menu>
      
      <ion-nav #mycontent [root]="rootPage"></ion-nav>

      <!--返回-->
      <button ion-button (click)="back()">反回</button>

      <!--打开和关闭侧栏-->
      <button ion-button (click)="toggoleMenu()">打开/关闭侧栏</button>
  
</ion-content>